package com.fhz.a2102shopjava.util;

/**
 * 时间:2023/8/18
 *
 * @author Mr.Feng
 * 简述: 自定义线程任务
 */
public abstract class MyRunnable implements Runnable{

    private String taskName;

    public String getTaskName() {
        return taskName;
    }

    public MyRunnable(String taskName) {
        this.taskName = taskName;
    }


    @Override
    public void run() {
        execute();
    }

    public abstract void execute();

}
